package com.dnui.seven2.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 
 * @TableName crowdfunding
 */
@Data
public class Crowdfunding implements Serializable {
    /**
     * 
     */
    @TableId
    private Long crowdfundingId;

    /**
     * 
     */
    private String crowdfundingName;

    /**
     * 
     */
    private Integer crowdfundingPrice;

    /**
     * 
     */
    private String crowdfundingGift;

    /**
     * 
     */
    private LocalDateTime crowdfundingDeadline;

    /**
     * 
     */
    private String crowdfundingImage;

    /**
     * 
     */
    private String crowdfundingFeedback;

    /**
     * 
     */
    private String administratorName;

    /**
     * 
     */
    private String performerName;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Crowdfunding other = (Crowdfunding) that;
        return (this.getCrowdfundingId() == null ? other.getCrowdfundingId() == null : this.getCrowdfundingId().equals(other.getCrowdfundingId()))
            && (this.getCrowdfundingName() == null ? other.getCrowdfundingName() == null : this.getCrowdfundingName().equals(other.getCrowdfundingName()))
            && (this.getCrowdfundingPrice() == null ? other.getCrowdfundingPrice() == null : this.getCrowdfundingPrice().equals(other.getCrowdfundingPrice()))
            && (this.getCrowdfundingGift() == null ? other.getCrowdfundingGift() == null : this.getCrowdfundingGift().equals(other.getCrowdfundingGift()))
            && (this.getCrowdfundingDeadline() == null ? other.getCrowdfundingDeadline() == null : this.getCrowdfundingDeadline().equals(other.getCrowdfundingDeadline()))
            && (this.getCrowdfundingImage() == null ? other.getCrowdfundingImage() == null : this.getCrowdfundingImage().equals(other.getCrowdfundingImage()))
            && (this.getCrowdfundingFeedback() == null ? other.getCrowdfundingFeedback() == null : this.getCrowdfundingFeedback().equals(other.getCrowdfundingFeedback()))
            && (this.getAdministratorName() == null ? other.getAdministratorName() == null : this.getAdministratorName().equals(other.getAdministratorName()))
            && (this.getPerformerName() == null ? other.getPerformerName() == null : this.getPerformerName().equals(other.getPerformerName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCrowdfundingId() == null) ? 0 : getCrowdfundingId().hashCode());
        result = prime * result + ((getCrowdfundingName() == null) ? 0 : getCrowdfundingName().hashCode());
        result = prime * result + ((getCrowdfundingPrice() == null) ? 0 : getCrowdfundingPrice().hashCode());
        result = prime * result + ((getCrowdfundingGift() == null) ? 0 : getCrowdfundingGift().hashCode());
        result = prime * result + ((getCrowdfundingDeadline() == null) ? 0 : getCrowdfundingDeadline().hashCode());
        result = prime * result + ((getCrowdfundingImage() == null) ? 0 : getCrowdfundingImage().hashCode());
        result = prime * result + ((getCrowdfundingFeedback() == null) ? 0 : getCrowdfundingFeedback().hashCode());
        result = prime * result + ((getAdministratorName() == null) ? 0 : getAdministratorName().hashCode());
        result = prime * result + ((getPerformerName() == null) ? 0 : getPerformerName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", crowdfundingId=").append(crowdfundingId);
        sb.append(", crowdfundingName=").append(crowdfundingName);
        sb.append(", crowdfundingPrice=").append(crowdfundingPrice);
        sb.append(", crowdfundingGift=").append(crowdfundingGift);
        sb.append(", crowdfundingDeadline=").append(crowdfundingDeadline);
        sb.append(", crowdfundingImage=").append(crowdfundingImage);
        sb.append(", crowdfundingFeedback=").append(crowdfundingFeedback);
        sb.append(", administratorName=").append(administratorName);
        sb.append(", performerName=").append(performerName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}